<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/My97DatePicker/WdatePicker.js"></script>
<script>
    
</script>
<div class="admin_nrtop">
    <div class="ad_search">
        <form action="/admini/manageday/meetdata/"  method="post" style="margin:0px" id="form1">
        <div class="timebox">
            <div class="ad_time">
                <div class="timezdy">
                    <div class="timeselect2">
                        <span><?php if($this->timescope){
                                switch ($this->timescope) {
                                    case "week":
                                        echo "本周";
                                        break;
                                    case "lastweek":
                                        echo "上周";
                                        break;
                                    case "month":
                                        echo "本月";
                                        break;
                                    case "lastmonth":
                                        echo "上月";
                                        break;
                                    case "quarter":
                                        echo "本季";
                                        break;
                                    case "lastquarter":
                                        echo "上季";
                                        break;
                                    case "year":
                                        echo "今年";
                                        break;
                                    case "lastyear":
                                        echo "去年";
                                        break;
                                    case "day7":
                                        echo "近7天";
                                        break;
                                    case "day30":
                                        echo "近30天";
                                        break;
                                    default:
                                        echo "范围选择";
                                        break;
                                }
                            }else{echo "范围选择";}?>
                        </span><i></i>
                    </div>
                    <div class="timeslelct_xl" style="display:none;">
                        <ul>
                            <li><a href="javascript:setstart('week')">本周</a></li>
                            <li><a href="javascript:setstart('lastweek')">上周</a></li>
                            <li><a href="javascript:setstart('month')">本月</a></li>
                            <li><a href="javascript:setstart('lastmonth')">上月</a></li>
                            <li><a href="javascript:setstart('quarter')">本季</a></li>
                            <li><a href="javascript:setstart('lastquarter')">上季</a></li>
                            <li><a href="javascript:setstart('year')">今年</a></li>
                            <li><a href="javascript:setstart('lastyear')">去年</a></li>
                            <li><a href="javascript:setstart('day7')">近7天</a></li>
                            <li><a href="javascript:setstart('day30')">近30天</a></li>
                        </ul>
                    </div>
                </div>
                <div class="timefw">
                    <div class="time">
                        <div class="timeselect"  id="stime">
                            <span id="stimeval"><?php echo $this->starttime?$this->starttime:date("Y年m月d日");?></span><i></i>
                        </div>
                    </div>
                    <div class="timezhi">
                        <span>至</span>
                    </div>
                    <div class="time" >
                        <div class="timeselect" id="etime">
                            <span id="etimeval"><?php echo $this->endtime?$this->endtime:date("Y年m月d日");?></span><i></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="timeok">
                <input type="hidden" id="timescope" name="timescope" value="<?php echo $this->timescope?$this->timescope:"";?>" />
                <input type="hidden" id="starttime" name="starttime" value="<?php echo $this->starttime?$this->starttime:"";?>"/>
                <input type="hidden" id="endtime" name="endtime" value="<?php echo $this->endtime?$this->endtime:"";?>" />
                <a href="javascript:$('#form1').submit();">确定</a>
            </div>
        </div>
        </form>
    </div>
</div>
<div  class="biaoge">
    <table width="920" border="1" cellpadding="0" cellspacing="0" style="font-size: 18px;">
        <tr align="center"><td colspan="7"><?php echo $this->starttime." 00:00:00 至".$this->endtime." 23:59:59";?>的统计数据</td></tr>
        <tr align="center">
            <td>出库包裹数</td>
            <td>入库包裹数</td>
            <td>入库总重量(kg)</td>
            <td>出库总预付金额</td>
            <td>问题运单数量</td>
            <td>代购数量</td>
            <td>代购金额</td>
        </tr>
        <tr align="center">
            <td><?php echo $this->outstore;?></td>
            <td><?php echo $this->instore;?></td>
            <td><?php echo $this->instoreweight/1000;?></td>
            <td><?php echo $this->waybillMoney;?></td>
            <td><?php echo $this->problemWaybill;?></td>
            <td><?php echo $this->shopNum;?></td>
            <td><?php echo $this->shopMoney;?></td>
        </tr>
    </table>
</div>
<script>
    $("#stime").click(function(){
        $(this).attr("class","timeselect t_on");
        WdatePicker({el:'stimeval',dateFmt:'yyyy年M月d日',vel:'starttime',onpicked:function(){
                $("#stime,#etime").attr("class","timeselect");
                $(".timebox #timescope").val("");
        }});
    });
    $("#etime").click(function(){
        $(this).attr("class","timeselect t_on");
        WdatePicker({el:'etimeval',dateFmt:'yyyy年M月d日',vel:'endtime',onpicked:function(){
                $("#stime,#etime").attr("class","timeselect");
                $(".timebox #timescope").val("");
        }});
    });
    $(".timezdy").bind("click",function(){
        $(".timezdy .timeselect2").attr("class","timeselect2");
        $(".timeslelct_xl").attr("style","display:none;");
        $(".timeslelct_xl").attr("style","display:block;");
    });
    $(".timezdy").mouseleave(function(){
       $(".timeselect2").attr("class","timeselect2");
       $(".timeslelct_xl").attr("style","display:none;");
    });
    function setstart(start)
    {
        $(".timebox #timescope").val(start);
        $(".timeselect2").attr("class","timeselect2");
        $(".timeslelct_xl").attr("style","display:none;");
        $('#form1').submit();
    }
</script>

